//
//  MovieTableViewCell.m
//  UI_元旦豆瓣
//
//  Created by dllo on 16/1/3.
//  Copyright © 2016年 31付冬梅. All rights reserved.
//

#import "MovieTableViewCell.h"

@implementation MovieTableViewCell
- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        [self creatMovieCell];
    }
    return self;
}
- (void)creatMovieCell {
    self.movieImageView = [[UIImageView alloc] init];
    [self.contentView addSubview:_movieImageView];
    self.titleLabel = [[UILabel alloc] init];
    [self.contentView addSubview:_titleLabel];
    
}
- (void)layoutSubviews {
    [super layoutSubviews];
    _movieImageView.frame = CGRectMake(10, 10, 100, 150);
    _movieImageView.backgroundColor = [UIColor redColor];
    _titleLabel.frame = CGRectMake(150, 30, 200, 50);
    _titleLabel.backgroundColor = [UIColor purpleColor];
}








- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
